﻿<%@ Page Language="C#" MasterPageFile="~/Site.master" Title="Real Estate By Loan Status"
    AutoEventWireup="true" CodeBehind="ByLoanStatus.aspx.cs" Inherits="RealEstate.ByLoanStatus" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <script type="text/javascript">
        function RowSelected(sender, args) {
            alert("Selected: " + args.getDataKeyValue("TransactionId"));
        }
        function RowDblClick(sender, args) {
            window.location = "LoanDetails.aspx?id=" + args.getDataKeyValue("TransactionId") + "&viewid=6";
        }
    </script>
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" Skin="Web20">
    </telerik:RadSkinManager>
    <div>
    </div>
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
        <telerik:RadGrid ID="radTableTransaction" runat="server" PageSize="15" AllowSorting="False" GroupingSettings-CaseSensitive="False" 
            AllowPaging="False" ShowGroupPanel="False" AutoGenerateColumns="False" GridLines="None" AllowFilteringByColumn="true">
            <PagerStyle Mode="NumericPages"></PagerStyle>
            <ClientSettings>
                <Selecting AllowRowSelect="True" />
                <ClientEvents OnRowDblClick="RowDblClick" />
            </ClientSettings>
            <MasterTableView Width="100%" ClientDataKeyNames="TransactionId" ShowFooter="True"
                GroupLoadMode="Client" GroupsDefaultExpanded="true">
                <GroupByExpressions>
                    <telerik:GridGroupByExpression>
                        <SelectFields>
                            <telerik:GridGroupByField FieldName="CaseStatus" HeaderText="Status" FormatString="<strong>{0}</strong>" />
                        </SelectFields>
                        <GroupByFields>
                            <telerik:GridGroupByField FieldName="CaseStatus" />
                        </GroupByFields>
                    </telerik:GridGroupByExpression>
                    <telerik:GridGroupByExpression>
                        <SelectFields>
                            <telerik:GridGroupByField FieldName="DateOfStatus" HeaderText="Date Of Status" FormatString="<strong>{0:MM/dd/yyyy}</strong>" />
                        </SelectFields>
                        <GroupByFields>
                            <telerik:GridGroupByField FieldName="DateOfStatus" />
                        </GroupByFields>
                    </telerik:GridGroupByExpression>
                </GroupByExpressions>
                <Columns>
                    <telerik:GridTemplateColumn AllowFiltering="false" HeaderText=" ">
                        <ItemTemplate>
                            <%# Container.DataSetIndex + 1 %>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" CurrentFilterFunction="Contains"
                        SortExpression="ClientCoClientName" HeaderText="Client's and Co Cclient's Name"
                        HeaderButtonType="TextButton" DataField="ClientCoClientName" UniqueName="ClientCoClientName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" CurrentFilterFunction="Contains"
                        SortExpression="Client.HomePhNumber" HeaderText="Home Phone" HeaderButtonType="TextButton"
                        DataField="Client.HomePhNumber" UniqueName="HomePhNumber" DataFormatString="{0:###-###-####}">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" CurrentFilterFunction="Contains"
                        SortExpression="Client.CellNumber" HeaderText="Cell Phone" HeaderButtonType="TextButton"
                        DataField="Client.CellNumber" UniqueName="CellPhoneNumber" DataFormatString="{0:###-###-####}">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn AllowFiltering="false"
                        SortExpression="PreviousProgram" HeaderText="Previous Program" HeaderButtonType="TextButton"
                        DataField="PreviousProgram" UniqueName="PreviousProgram">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn AllowFiltering="false"
                        SortExpression="TargetProgram" HeaderText="Target Program" HeaderButtonType="TextButton"
                        DataField="TargetProgram" UniqueName="TargetProgram" DataFormatString="{0}">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn AllowFiltering="false"
                        SortExpression="LockedProgram" HeaderText="Locked Program" HeaderButtonType="TextButton"
                        DataField="LockedProgram" UniqueName="LockedProgram" DataFormatString="{0}">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn AllowFiltering="false"
                        SortExpression="DateOfCOE" HeaderText="Date To Be COE" HeaderButtonType="TextButton"
                        DataField="DateOfCOE" UniqueName="DateOfCOE" DataFormatString="{0:MM/dd/yyyy}">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn AllowFiltering="false"
                        SortExpression="ReferedBy" HeaderText="Refered By" HeaderButtonType="TextButton"
                        DataField="ReferedBy" UniqueName="ReferedBy" DataFormatString="{0}">
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
    </telerik:RadAjaxPanel>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
</asp:Content>
